package com.example.psysystemhomework.bean;

import lombok.Data;


/**
 * Copyright:zhaoyang.wicp.vip
 * Author:王昭阳 -小明机器人
 * Date:2021/12/2
 * Description:代码版权声明
 */


public class RBean {
    private boolean flag;
    private Object data;
    private String msg;

    public RBean() {
    }

    public RBean(boolean flag) {
        this.flag = flag;
    }

    public RBean(boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public RBean(boolean flag, Object data, String msg) {
        this.flag = flag;
        this.data = data;
        this.msg = msg;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public RBean(String msg) {
        flag = false;
        this.msg = msg;
    }
}
